package com.example.springevent.event;

import com.example.springevent.model.Order;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 订单创建事件 - 标准事件
 */
@Getter
public class OrderCreatedEvent extends ApplicationEvent {
    
    private final Order order;
    
    public OrderCreatedEvent(Object source, Order order) {
        super(source);
        this.order = order;
    }
}